<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
		   <div class="panel panel-inverse">
                <div class="panel-heading">
                    <div class="panel-heading-btn">
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                    </div>
                    <h4 class="panel-title">机构管理</h4>
                </div>
                <div class="panel-body" >
                   <ul id="ztree" class="ztree" ></ul>
                </div>
                 <div class="panel-footer">
                   <button type="button" class="btn btn-primary btn-sm" ng-click="showAddRootResourceModal();" >创建根机构</button>
                 </div>
            </div>
 		</div>
	</div>
</div>

<div class="modal fade" role="dialog" id="addModal" aria-labelledby="gridSystemModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" >新建</h4>
      </div>
      <div class="modal-body">
        <div class="container-fluid">
         
          <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">名称</span>
             <input type="text" ng-model="entity.nameZh" class="form-control" placeholder="名称" aria-describedby="sizing-addon2" >
             </div>
          </div>
          <br>
           <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">代码</span>
             <input type="text" ng-model="entity.code" class="form-control" placeholder="代码" aria-describedby="sizing-addon2" data-toggle="popover" data-placement="top" data-content="请填写大写英文字母">
             </div>
          </div> 
           <br>
           <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">排序</span>
             <input type="text"  ng-model="entity.seqNum" class="form-control" placeholder="排序" aria-describedby="sizing-addon2"  data-toggle="popover" data-placement="top" data-content="请填写正整数" >
             </div>
          </div>
                
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" ng-click="save(entity);">保存</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<div class="modal fade" role="dialog" id="editModal" aria-labelledby="gridSystemModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" >编辑</h4>
      </div>
      <div class="modal-body">
        <div class="container-fluid">
       
          <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" >名称</span>
             <input type="text" ng-model="editEntity.nameZh" class="form-control" placeholder="名称" aria-describedby="sizing-addon2" >
             </div>
          </div>
          <br>
           <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">代码</span>
             <input type="text" ng-model="editEntity.code" class="form-control" placeholder="代码" aria-describedby="sizing-addon2" data-toggle="popover" data-placement="top" data-content="请填写大写英文字母">
             </div>
          </div> 
           <br>
           <div class="row">
             <div class="col-md-12 input-group">
             <span class="input-group-addon" id="sizing-addon1">排序</span>
             <input type="text"  ng-model="editEntity.seqNum" class="form-control" placeholder="排序" aria-describedby="sizing-addon2"  data-toggle="popover" data-placement="top" data-content="请填写正整数" >
             </div>
          </div>
         
          </div>
      </div>
      <div class="modal-footer">
     
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" ng-click="update(editEntity);">保存</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<style type="text/css">
     .ztree li span.button.add {margin-left:2px; margin-right: -1px; background-position:-144px 0; vertical-align:top; *vertical-align:middle}
</style>

 